//
//  AppDelegate.swift
//  weibo-mxm
//
//  Created by 马晓敏 on 16/1/11.
//  Copyright © 2016年 马晓敏. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        print(UserCount.loadUserAccount())
        setThemeColor()
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
       
        window?.makeKeyAndVisible()
        window?.rootViewController = MainController()
        window?.backgroundColor = UIColor.whiteColor()
        
     return true
    }

    private func setThemeColor(){
    
    UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    UITabBar.appearance().tintColor = UIColor.orangeColor()
    
    }

}

